Skip to content

Run progress: masks counter reaches N of N; stray docstring (follow-up of #567) - #572

Merged
guijacquemet merged 2 commits into
mainfrom
claude/run-progress-nits
Nov 26, 2026
Merged

guijacquemet merged 2 commits into
mainfrom
claude/run-progress-nits

Conversation

@guijacquemet

Copy link
Copy Markdown
Contributor

Two small follow-ups from #567. Draft; not for v0.9.0.

Masks counter ended at N-1 of N

The mask header check called progress(done, total, path) before each mask (done = 0..N-1) and never after the last. Preflight's closing ("masks", 1, 1, "") is a placeholder total of 1; the notebook's _checking ignores it unless the wait's total is 1, so the last line drawn was "N-1 of N".

Fix: masks/checks.py::_header_issues also reports (N, N, "") after the last mask (documented in the three docstrings that describe the callback). Nothing read, checked or recorded changes. The mask re-pairing callback (remasked) gets the same closing tick.

Stray docstring

#567 had no review comments, reviews or nit in its body or issue comments (checked through the REST API), so I could not find the reviewer's wording. The only stray docstring #567 introduced is in notebook_progress.py: the docstring of PREPARING sat after COUNTED_PHASES (added in d9bf371), leaving two string literals after the constant. It is moved back under PREPARING. Please say if the nit meant something else.

Tests

  • New test_the_masks_counter_reaches_n_of_n (real run with 3 masks, then the notebook wait): fails on main, passes here.
  • test_pairing_the_masks_again_reports_each_mask updated for the closing tick.
  • Focused set (run-checking progress, notebook progress, preflight progress, masks, seven steps, mask step, check/save): 148 passed, 4 skipped (all zarr not installed). ruff and tools/check.py --rules clean. The full tools/check.py was not run.

Generated by Claude Code

…ring back

The mask header check reported "done of N" before each mask and nothing after the
last, so the run's wait stopped at N-1 of N. It now also reports (N, N, "") after
the last mask. What is read and recorded is unchanged.

The docstring of PREPARING had been separated from it by COUNTED_PHASES.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WX6rdMV1r5jUPUR94kxV5a
@guijacquemet
guijacquemet marked this pull request as ready for review November 26, 2026 06:31
@guijacquemet
guijacquemet merged commit 357b5af into main Nov 26, 2026
@guijacquemet
guijacquemet deleted the claude/run-progress-nits branch November 26, 2026 06:35
guijacquemet pushed a commit that referenced this pull request Nov 26, 2026
…0.9.0 release branch

One conflict, in CHANGELOG.md: both sides added entries at the top of the v0.9.0 list. Both
kept; the #576 entry is in the v0.9.0 section. main is not merged: #568, #572 and the later
work stay out of v0.9.0. The notebooks' pins, the RELEASE_CALLS entry and the pin assertion are put back to their
pre-pin values (the branch carried commit B's) so that commit B' moves them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WX6rdMV1r5jUPUR94kxV5a
@guijacquemet guijacquemet mentioned this pull request Nov 26, 2026
3 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants